package com.atmilan.quartz.model.entity.orange;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * orange商品sku渠道
 * </p>
 *
 * @author wuzp
 * @since 2021-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orange_product_sku_channel")
@ApiModel(value="OrangeProductSkuChannel对象", description="orange商品sku渠道")
public class OrangeProductSkuChannel extends Model<OrangeProductSkuChannel> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "规格id")
    private String skuId;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    @ApiModelProperty(value = "渠道类型")
    private String channelType;

    @ApiModelProperty(value = "现价（实际采购价）")
    private Double price;

    @ApiModelProperty(value = "原价（建议零售价）")
    private Double originalPrice;

    @ApiModelProperty(value = "当前渠道商品的库存数")
    private Integer stock;

    @ApiModelProperty(value = "商品编码 如果系统需要在会订货系统导入订单 需要使用到")
    private String itemCode;

    @ApiModelProperty(value = "商品销售状态(0为不可售 1可售)")
    private String salesStatus;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
